import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

export default defineConfig({
  plugins: [vue()],
  server: {
    // host: '0.0.0.0'
  },
  css: {
    preprocessorOptions: {
      less: {
        globalVars: {
          // 全局变量配置
          hack: `true; @import "${path.resolve(__dirname, 'src/styles/commons.less')}";`
        }
      }
    }
  }
})
